﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Clinica/MasterPageAtencion.master" AutoEventWireup="true" CodeFile="wfAtencionExamenEspecialidad.aspx.cs" Inherits="Clinica_wfAtencionExamenEspecialidad" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMenuSecundario" runat="Server">
    <li><a href="wfInterconsultaListado.aspx" class="">Interconsulta</a></li>
    <li><a href="wfAtencionListado.aspx" class="active">Atención</a></li>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ModuleTitleContent" runat="Server">
    Atención
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentEnlacesRapidos" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <style type="text/css">
                .filas
                {
                    padding: 0.5em 0.75em;
                }
                .btn_izq_2
                {
                    float: left;
                }
                .btn_der_2
                {
                    float: right;
                }
                .btn_izq_2, .btn_der_2
                {
                    width: 45%;
                }
            </style>
            <ul class="tabs primary">
                <li><a href="wfAtencionListado.aspx">Listado de Atenciones</a></li>
                <li><a href="wfAtencion.aspx" class="">Registrar Atención</a></li>
                <li><a href="wfAtencionEnfermedadActual.aspx" class="">Enfermedad Actual</a></li>
                <!--<li><a href="wfAtencionHistoriaPersonal.aspx" class="">Historia Personal</a></li>
                <li><a href="wfAtencionHistoriaSocial.aspx" class="">Historia Social</a></li>-->
                <li><a href="wfAtencionExamenActividad.aspx" class="">Examen Actividad</a></li>
                <li class="active"><a href="wfAtencionExamenEspecialidad.aspx" class="">Examen Especialidad</a></li>
                <li><a href="wfAtencionDiagnostico.aspx" class="">Diagnostico</a></li>
            </ul>
            <h4>
                Examen Especialidad</h4>
            <table width="99%">
                <tr>
                    <td>
                        <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="99%">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="btnAceptar" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Text="Aceptar" OnClick="btnAceptar_Click">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btCancelar" runat="server" ClientIDMode="AutoID" 
                                                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Text="Cancelar" OnClick="btCancelar_Click">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </td>
                </tr>
            </table>
            <table width="99%">
                <tr>
                    <td>
                        <dx:ASPxLabel ID="ASPxLabel40" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" Text="Examen">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxPageControl ID="tabExamenes" runat="server" ActiveTabIndex="1" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" Width="50%">
                            <TabPages>
                                <dx:TabPage Text="Datos">
                                    <ContentCollection>
                                        <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                                            <dx:ASPxButton ID="btnAgregarListado" runat="server" Text="Agregar" OnClick="AgregarListado" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                Width="100">
                                            </dx:ASPxButton>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel41" runat="server" Text="Descripción">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtDescripcion" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            Width="170px">
                                                            <ValidationSettings>
                                                                <ErrorFrameStyle ImageSpacing="4px">
                                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                                    <ErrorTextPaddings PaddingLeft="4px"></ErrorTextPaddings>
                                                                </ErrorFrameStyle>
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel42" runat="server" Text="Fecha">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxDateEdit ID="dtpFecha" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                            <ValidationSettings>
                                                                <ErrorFrameStyle ImageSpacing="4px">
                                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                                    <ErrorTextPaddings PaddingLeft="4px"></ErrorTextPaddings>
                                                                </ErrorFrameStyle>
                                                            </ValidationSettings>
                                                        </dx:ASPxDateEdit>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel43" runat="server" Text="Nro Orden">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtNroOrden" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            Width="170px">
                                                            <ValidationSettings>
                                                                <ErrorFrameStyle ImageSpacing="4px">
                                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                                    <ErrorTextPaddings PaddingLeft="4px"></ErrorTextPaddings>
                                                                </ErrorFrameStyle>
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel48" runat="server" Text="Procedimiento">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtProcedimiento" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="170px"
                                                            ReadOnly="true">
                                                            <ValidationSettings>
                                                                <ErrorFrameStyle ImageSpacing="4px">
                                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                                    <ErrorTextPaddings PaddingLeft="4px"></ErrorTextPaddings>
                                                                </ErrorFrameStyle>
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxButton ID="btnBuscarProced" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Text="Buscar"
                                                            OnClick="BuscarProcedimiento" Width="100px">
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtidPro" runat="server" Width="1px" ClientVisible="false">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:ContentControl>
                                    </ContentCollection>
                                </dx:TabPage>
                                <dx:TabPage Text="Listado">
                                    <ContentCollection>
                                        <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <dx:ASPxGridView ID="grdExamenEspec" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" AutoGenerateColumns="False" KeyFieldName="idPro"
                                                            Width="100%" OnAfterPerformCallback="grdExamenEspec_AfterPerformCallback" OnPageIndexChanged="grdExamenEspec_PageIndexChanged">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="idPro" ShowInCustomizationForm="True" Visible="false" VisibleIndex="0">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="descrip" ShowInCustomizationForm="True" VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="nroOrden" ShowInCustomizationForm="True" VisibleIndex="3">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="fecha" ShowInCustomizationForm="True" VisibleIndex="4">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:ContentControl>
                                    </ContentCollection>
                                </dx:TabPage>
                            </TabPages>
                            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/tcLoading.gif">
                            </LoadingPanelImage>
                            <Paddings PaddingLeft="5px" PaddingRight="5px" PaddingTop="3px" />
                            <Paddings PaddingLeft="5px" PaddingTop="3px" PaddingRight="5px"></Paddings>
                            <ContentStyle>
                                <Border BorderWidth="0px" />
                                <Border BorderWidth="0px"></Border>
                            </ContentStyle>
                        </dx:ASPxPageControl>
                    </td>
                </tr>
            </table>
            <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="350px" AllowDragging="True" AllowResize="True" ClientInstanceName="pcMensaje" CloseAction="CloseButton" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" DragElement="Window">
                <HeaderImage Url="~/Imagenes/iconError.png" Width="20px">
                </HeaderImage>
                <HeaderStyle Font-Bold="True" BackColor="#3D5294" ForeColor="White" />
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
                        <table width="100%">
                            <tr>
                                <td style="padding: 0 0 0 20px; text-align: center">
                                    <dx:ASPxLabel ID="lblMensaje" runat="server">
                                    </dx:ASPxLabel>
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Aceptar">
                                        <ClientSideEvents Click="function(s, e) {pcMensaje.Hide();}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="pcProcedimiento" runat="server" Width="350px" AllowDragging="True" AllowResize="True" ClientInstanceName="pcProcedimiento" CloseAction="CloseButton" HeaderText="Lisda de Procedimientos"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" DragElement="Window">
                <HeaderStyle Font-Bold="True" BackColor="#3D5294" ForeColor="White" />
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server">
                        <table width="100%">
                            <tr>
                                <td class="filas" colspan="2">
                                    <dx:ASPxGridView ID="grdProcedimiento" runat="server" ClientInstanceName="grdProcedimiento" KeyFieldName="PRO_ID_PROCEDIMIENTO" Width="100%" AutoGenerateColumns="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                        CssPostfix="PlasticBlue" OnAfterPerformCallback="grdProcedimiento_AfterPerformCallback" OnPageIndexChanged="grdProcedimiento_PageIndexChanged">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="PRO_ID_PROCEDIMIENTO" ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Procedimiento" FieldName="PRO_DESCRIPCION" ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="filas btn_izq_2" align="right">
                                    <dx:ASPxButton ID="btnAgregarProcedimiento" runat="server" Text="Agregar" OnClick="AgregarProcedimiento" Width="100px">
                                        <ClientSideEvents Click="function(s, e) {pcProcedimiento.Hide();}" />
                                    </dx:ASPxButton>
                                </td>
                                <td class="filas btn_der_2" align="left">
                                    <dx:ASPxButton ID="btnCancelarProcedimiento" runat="server" AutoPostBack="False" Text="Cancelar" Width="100px">
                                        <ClientSideEvents Click="function(s, e) {pcProcedimiento.Hide();}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
